<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<style>
.form-item {
	margin: 20px 10px;
}

.form-item>label {
	letter-spacing: 3px;
	width: 110px;
	text-align: right;
	display: inline-block;
}

.form-item>label:after {
	content: ":";
}

.form-item input[type=text] {
	width: 100px;
}

.form-item.required>label:before {
	content: "*";
	color: red;
}

#s_province, #s_city, #s_county {
	height: 24px;
	border-radius: 5px;
	border-color: dodgerblue;
}
</style>
<script type="text/javascript">
 $(function(){
	 var osel=document.getElementById("sel");
	  var ohid=document.getElementById("hid");
	 ohid.value=osel.value;
 })
</script>
<form id="addZhuanBanForm">
	<h3 style="text-align: center; margin-top: 30px;">${zhuanBanEntity==null?'添加':'编辑' }转班信息详情</h3>
	<br /> <span style="margin-left: 20px;">注：其中 <span
		style="color: red;">*</span> 为必填选项
	</span> <br />
	<input type="hidden" value="${zhuanBanEntity.zhuanbanId }"name="zhuanBanId"> 
	<input type="hidden" value="${title}"name="title"> 
	<div class="form-item required">
			<label for="">学生姓名</label>
		<input value="${studentEntity.studentName }"  ${zhuanBanEntity.zhuanbanId==null?'':'readonly="readonly"' }
		  type="text" data-options="required:true" class="easyui-textbox" name="studentName">
		<label for="">原有班级</label>
		<select name="oldClass" id="sel" disabled="disabled"
			style="height: 24px; border-radius: 5px; border-color: dodgerblue;">
		<c:forEach items="${classList }" var="x">
				<option value="${x.classId }" ${oldclass.classId==x.classId?'selected':'' }>${x.className }</option>
			</c:forEach>
		</select>
		<input type="hidden" id="hid" name="hid"> 
	</div>
	<div class="form-item required">
		<label for="">转换班级</label> <select name="newClass"
			style="height: 24px; border-radius: 5px; border-color: dodgerblue;">
			<option  value="">请选择</option>
			<c:forEach items="${classList }" var="y">
				<option value="${y.classId }" ${newclass.classId==y.classId?'selected':'' }>${y.className }</option>
			</c:forEach>
		</select>&nbsp;&nbsp; <label style="margin-left: -25px;" for="">类型</label> <select name="type">
			<option value="">请选择</option>
			<option selected="selected" value="1" ${zhuanBanEntity.type==1?'selected':'' }>转班</option>
			<option value="2" ${zhuanBanEntity.type==2?'selected':'' }>合并班</option>
		</select>
	</div>
</form>